<!DOCTYPE HTML>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"  />
    <title>{$banner.name}</title>
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
    <meta http-equiv="x-dns-prefetch-control" content="on" />
	<script type="text/javascript" src="wx_assets/js/alertMsg.js"></script>
    <!-- 
    <link rel="dns-prefetch" href="//pics0.paipaiimg.com">
    <link rel="dns-prefetch" href="//pics1.paipaiimg.com">
    <link rel="dns-prefetch" href="//pics2.paipaiimg.com">
    <link rel="dns-prefetch" href="//pics3.paipaiimg.com">
    <link rel="dns-prefetch" href="//static.paipaiimg.com">
     -->
    <link rel="stylesheet" type="text/css" href="{$Think.config.RESOURCEURL}wx_assets/css/gb_v3.css" />
    <!-- 
     -->
    <link combofile="mall/brand_v513.shtml" rel="stylesheet" href="{$Think.config.RESOURCEURL}wx_assets/css/brand_v513.min.css?t=1395054818" /><!--[if !IE]>|xGv00|4a3b138b0149ac5fa590e0aba3bea0e5<![endif]-->
</head>
<body>
  <div class="WX_bar">
  <!-- 
    <div class="WX_bar_back">
        <a id="backIco" href="##" style="display:none"></a>
    </div>
   -->
    <div class="WX_bar_tit" id="brandName">{$banner.name}</div>
    <!-- 
	    <a class="btn_guang" href="##" id="guangShop2" style="display: none">进店逛逛</a>
     -->
  </div>
  
  <div class="wx_wrap">
      <div class="tm_brandinfo" id="brandInfo" style="display:none;">
        <h3 id="shopName"></h3>
        <p><a href="javascript:;" class="btn_follow" id="topFollowShop">关注</a><a href="javascript:;" class="btn_guang" id="guangShop">进店逛逛</a></p>
      </div>
      
      <div class="tm_banner" style="display: none">
        <img id="brandLogo">
      </div>
      
          <!-- 
      <div class="tm_filter">
        <div class="tm_filter_inner" id="filter">
          <a href="###" no="1" class="cur">推荐</a>
          <a href="###" no="2" class="">价格<i class="sort"></i></a>
          <a href="###" no="3" class="">折扣<i class="discount"></i></a>
           -->
          <!-- 
          <a href="###" no="4" class="view"><i class="grid"></i></a>
        </div>
      </div>
           -->
  	
      <div class="tm_itemlist" id="itemCont">
      	<!-- 
        <div class="wx_loading" style="margin-bottom:100px">
          <span class="wx_loading_gif"></span>
          <span class="wx_loading_txt">加载中...</span>
        </div>
      	 -->
      	 
      	 <volist name="productList" id="product">
      	 
      	 	<div class="hproduct" id="{$product.id}">
      	 		<p class="cover">
	      	 		<a >
	      	 			<img title="{$product.name}" src="{$product.picUrl}" >
	      	 		</a>
      	 		</p>
      	 	
	      	 	<p class="fn">
	         		<a href="">
	         			<!-- 
	         			 <span class="dis">【新品】</span>
	         			 -->
	         			{$product.name}
	         		</a>
	         	</p>
      	 	
	      	 	<!-- 
		      	 	<p class="sku">
		         		<a href="">TODO::产品描述</a>
		         	</p>
	      	 	 -->
	      	 	 
	      	 	 <if condition="($product.fixedPrice neq NULL)">
					<notempty name="product.discountedPrice">
						 <p class="prices">
			         		<strong>折扣价
			         			<em>￥{$product.discountedPrice}</em>
			         		</strong>
			         		<!-- 
			         		<span class="discount">4.3折</span>
			         		 -->
			         		 <del>原价￥{$product.fixedPrice}</del>
		        		</p>
		        		<p class="prices_divide">
		        		</p>
               		 </notempty>
                   	<empty name="product.discountedPrice">
                   		<p class="prices">
			         		<strong>原价
			         			<em>￥{$product.fixedPrice}</em>
			         		</strong>
		        		</p>
                   	</empty>
	             <elseif condition="($product.points neq NULL)" /> 
	                    	<p class="prices">
	                    	<if condition="$product.pointsType eq 'interact'">
                				<strong>互动积分
				         			<em>{$product.points}</em>
				         			积分
			         			</strong>
                			<elseif condition="$product.pointsType eq 'consume'"/>
                				<strong>消费积分
				         			<em>{$product.points}</em>
				         			积分
			         			</strong>
                			</if>
			         		
		        		</p>
	             <else />
                 </if>
                 <!-- 
		      	 	<p class="comment">
	         			<a href="""></a>
	         		</p>
                  -->
	      	 	  <if condition = "($showBtn eq 1)">
		      	 	  	<notempty name = "product.fixedPrice">
		      	 	  		<a class="btn_buy"  onclick="onDetail(this,{$product.id})">立即购买</a>
		               	</notempty>
		               	<notempty name = "product.points">
		               		<a class="btn_buy" onclick="onDetail(this,{$product.id})">立即兑换</a>
		               	</notempty>
	      	 	  </if>
         	
      	 	</div>
      	 	
      	 </volist>
         
      </div>
     
		<div class="wx_ending">
	        <ul>
	          <li ><a class="load-more  qb_none" id="load-more">点击加载更多</a></li>
	        </ul>
	      </div>
        <!-- 
	      <div class="wx_ending">
	        精选品牌每日更新，9点开抢限时特卖<br/>
	        请点击右上角<strong>【收藏】</strong>或<strong>【分享】</strong>给朋友们
	      </div>
	
	      <div class="wx_ending">
	        <ul>
	          <li id="followShop">享受更多微店资讯<a href="javascript:;" class="btn_follow">关注本店</a></li>
	          <li id="followWanggou">查询物流订单<a href="javascript:;" class="btn_follow" >关注QQ网购</a></li>
	        </ul>
	      </div>
	
	      <div class="wx_footer">
	        <div class="copyright">
	            <p><a href="">摩宝电商服务协议</a></p>
	            <p>Copyright © 1998-2014 Tencent. All Rights Reserved <br>摩宝时代 版权所有</p>
	        </div>
	      </div>
         -->    

  </div>
  
  <a href="#" id="goTop" onclick="$countRd('34271.1.6')" style="display: none" class="WX_backtop WX_backtop_active">返回顶部</a>
  
<script type="text/html" id="tpl">
<div class="hproduct{#soldStyle#}" id="item{#cid#}">
  <p class="cover"><a href="{#clkUrl1#}"><img init_src="{#uppic1#}" title="{#cFullNm#}"></a></p>
  <p class="fn"><a href="{#clkUrl1#}"><span class="dis">【{#ext1#}】</span>{#rcmdNm#}</a></p>
  <p class="sku"><a href="{#clkUrl1#}">{#ext2#}</a></p>
  <p class="prices"><strong>微信价<em>&yen;{#actPrice#}</em></strong><span class="discount">{#dis#}折</span><del>市场价&yen;{#oldPrice#}</del></p>
  <p class="comment"><a href="{#clkUrl2#}&showMenu=score" id="comm{#cid#}"></a></p>
  <a href="{#clkUrl1#}" class="btn_buy">立即购买</a>
</div>
</script>

<script type="text/html" id="tplsmall">
<div class="hproduct{#soldStyle#}" id="item{#cid#}">
  <p class="cover"><a href="{#clkUrl1#}"><img init_src="{#uppic1#}" title="{#cFullNm#}"></a></p>
  <p class="prices"><strong><em>&yen;{#actPrice#}</em></strong><del>&yen;{#oldPrice#}</del><span class="discount">{#dis#}折</span></p>
  <p class="fn"><a href="{#clkUrl1#}"><span class="dis">【{#ext1#}】</span>{#rcmdNm#}</a></p>
</div>
</script>

<script>
var hrefParamsArray = GetSessionIdFromHref(window.location.search);
hrefParamsArray["userName"]='{$userName}';
function GetSessionIdFromHref(search){
　　	var args = search.substring(1); 
　　	var retval = new Array(); 
	args = args.split("&"); 
		for(var i = 0; i < args.length; i ++){ 
			str = args[i]; 
			var arg = str.split("="); 
			if(arg.length <= 1) continue; 
			
			if(arg[0] == 'params') {
				var params = decodeURIComponent(arg[1]);
				var obj = eval('(' + params + ')');
				if (obj.rootid != undefined) {
					retval["rootid"] = obj.rootid;
				}
				if (obj.start != undefined) {
					retval["start"] = obj.start;
				}
				retval["id"] = obj.id;
			} else if(arg[0] == 'customerId') {
				retval["customerId"] = arg[1]; 
			}else if(arg[0] == 'userName'){
				retval["userName"] = arg[1]; 
			} else if(arg[0] == 'method') {
				retval["method"] = arg[1];
			} else if (arg[0] == 'module') {
				retval["module"] = arg[1];
			}
		} 
		
		if (retval["start"] == undefined) {
			retval["start"] = 0;
		}
		return retval; 
}

function onDetail(ctrl,id) {
	var rootid = '';
	if (hrefParamsArray["rootid"] !== undefined) {
		rootid = ',"rootid":' + hrefParamsArray["rootid"];
	}
	ctrl.href = 'call.html?userName=' + hrefParamsArray['userName'] + '&customerId='
	+ hrefParamsArray['customerId'] + '&module=product&method=getProduct&params={"tplid":2,"id":"' + id + rootid + '"}';
}
</script>


<script type="text/javascript" src="wx_assets/js/zepto.1.1.3.min.js?t=20140213"></script>
<script>window["PP.mobile.temaiV3.time"]=[new Date()]</script>
<script id="legos:21974" ver="21974:20140311:20140317142518" name="PP.mobile.temaiV3" src="wx_assets/js/pp.mobile.temaiV3.20140311.js?t=201403191" charset="gbk"></script><!--[if !IE]>|xGv00|928a8a491c10a489996651b9222fdc1b<![endif]-->


<script type="text/javascript">
	var LIMIT = 10;
	var start = hrefParamsArray["start"];
	var showBtn = {$showBtn};
	if ({$total} > LIMIT) {
		var loadNode = $("#load-more");
		loadNode.html("点击加载更多").removeClass("qb_none");
		loadNode.on("click",function() {
			var rootid = '';
			if (hrefParamsArray["rootid"] !== undefined) {
				rootid = ',"rootid":' + hrefParamsArray["rootid"];
			}
			
			var baseUrl =  '{$Think.config.SERVER_HOST}';
			var urlString = baseUrl + 'call.json?customerId='+ hrefParamsArray["customerId"]+'&userName='+hrefParamsArray["userName"];
			var id = {$banner.id};
			start = start +LIMIT ;
			var container = $("#itemCont");
			$.ajax({url : urlString,
						dataType : "json",
						type : "post",
						data : {
							'module': hrefParamsArray["module"],
					        'method' : hrefParamsArray["method"],
					        'params' : '{"tplid":1,"id":' + hrefParamsArray["id"] + ',"start":' + start + rootid + '}',
						},
						success : function(data) {
							if (data.code != undefined) {
								alert(data.msg);
								return;
							}

							if ({$total} <= start + LIMIT) {
								loadNode.addClass("qb_none");
							}
							var productList = data['productList'];
	      	                var str = '';
	      	                
	      	                for(key in productList) {
	      	                	var product = productList[key];
	      	                	
	      	                	
	      	                	var priceStr = '';
	      	                	if(product["discountedPrice"] != null && product["fixedPrice"] != null ){
	      	                		priceStr = "<p class='prices'> <strong>折扣价<em>￥"
	      	                		+product["discountedPrice"]
	      	                		+"积分</em></strong><del>原价￥"+product["fixedPrice"]+"</del> <p class='prices_divide'></p>";
	      	                		
	      	                	}else if(product["fixedPrice"] != null && product["discountedPrice"] == null){
	      	                		priceStr = "<p class='prices'> <strong>原价<em>￥"+product["fixedPrice"]+"</em></strong> </p>";
	      	                		
	      	                	}else if(product["points"] != null && product["pointsType"] == 'interact'){
	      	                		priceStr = "<p class='prices'> <strong>互动积分<em>"+product["points"]+"</em> 积分</strong> </p>";
	      	                		
	      	                	}else if(product["points"] != null && product["pointsType"] == 'consume'){
	      	                		
	      	                		priceStr = "<p class='prices'> <strong>消费积分<em>"+product["points"]+"</em>积分</strong> </p>";
	      	                	}
	      	                	
	      	                	var btnStr = '';
	      	                	
	      	                	if(showBtn == 1){
	      	                		
		      	                	if(product["fixedPrice"] != null ){
		      	                		btnStr= "<a class='btn_buy' onclick='onDetail(this,"+product["id"]+")'>立即购买</a>";
		      	                	}else if(product["points"] != null){
		      	                		btnStr= "<a class='btn_buy' onclick='onDetail(this,"+product["id"]+")'>立即兑换</a>";
		      	                	}
	      	                	}
	      	                	
	      	                	str += "<div class='hproduct' id='"+product["id"]+"'>"
	      	                			+"<p class='cover'>"
	      	                			+"<a><img title='"+product["name"]+"' src='"+product["picUrl"]+"'> </a>"
		      	        	 			+"</p>"
		      	        	 			+"<p class='fn'> <a href=''> "+product["name"]+"</a></p>"
	      	      	 					+priceStr
	      	      	 					+btnStr
	      	      	 					+"</div>";
	      	      	 					
	      	                }
	      	                container[0].innerHTML += str;
						}
				});
		});	
	}
</script>


<script>
  var objMsg = {p:"paipai.com",weixin:1,client:1001};
  var _shareMsg = '一步闪购，品牌特卖，移动购物轻松之选', _shareIco = 'http://pics1.paipaiimg.com/update/20131218/index_1_logo.jpg';
  PP.mobile.temai.initItem();
</script>

<script>
    window.shareConfig = {
        img_url: _shareIco,
        img_width: "100",
        img_height: "100",
        link: location.href,
        title: _shareMsg,
        desc: "微信品牌特卖，正品低价，时尚品牌热卖中！"
    };
	
    $('#backIco').click(function(){
    	//this.href = this.href + '&id='+$getQuery('id');
    	localStorage.setItem('scroll', $getQuery('areaId')||$getQuery('areaid'));
    });
    
    //setTimeout(function(){
    	//$('#backIco').show();
    	//$id('backIco').href = 'brand_list_v52.shtml?isret=1&PTAG=34271.1.7';
	//}, 1000);
    
    (function detectOS(){
        var osArray = ['ios', 'android'],//需要支持其他系统在数组里加
            osObj = $.os,
            os,
            version,
            tag;
        if(osObj){
            version = osObj.version;
        }
        else{
        	return;
        }
        $.each(osArray, function(i, item){
            if(osObj[item] == true){
                os = item;
                return false;
            }
        });
        if (os) {
	      os == 'ios' ? version = parseInt(version, 10) : os == 'android' ? version = parseFloat(version) : null;
	      tag = os + version;
	      if (os == 'android' && version >= 4) {
	        tag += ' fixedLayout';
	      } else if (os == 'android' && version < 4) {
	        tag += ' lowAndroid';
	      } else if (os == 'ios' && version < 6) {
	        tag += ' lowIphone';
	      } else if (os == 'ios' && version >= 6) {
	        tag += ' scrollLayout';
	      }
	      tag = tag.replace('.', '_');
	      $('html').addClass(tag);
	  }
    })();
</script>


<script>window["PP.wg.mobilereport.time"]=[new Date()]</script>
<script id="legos:21948" ver="21948:20140319:20140319100438" name="PP.wg.mobilereport" src="wx_assets/js/pp.wg.mobilereport.20140319.js?t=20140319100438" charset="gbk"></script><!--[if !IE]>|xGv00|dd2a26b5194e2f6698b12962f477ef4a<![endif]-->
<script>
(function(){
	var objMsgPv = window.objMsg || {};
	objMsgPv.p="paipai.com";
	objMsgPv.weixin=1; //通道p 为paipai.com
	var ua = navigator.userAgent.toLowerCase(), isHideBack=false;
	if((/qq\/([\d\.]+)*/).test(ua)){
		objMsgPv.client = 2001;
		isHideBack = true;
	}else if(ua.indexOf('micromessenger') > -1){
		objMsgPv.client = 4001;
	}else{
		objMsgPv.client = 4001;
	}
	// 允许业务手工上报
	if(!window.manualReport){
		ECC.cloud.report.pv(objMsgPv); //这个一定要在前  防止后面报错
	}
	if(isHideBack){
		var back = document.querySelectorAll('.wx_bar,.WX_bar');
		if(back[0] && back[0].className.toLowerCase() == 'wx_bar') {back[0].style.display = 'none';}
		else {back[0].style.display = '';}
	}
})();
//测速上报
document.addEventListener('DOMContentLoaded', function(){
	var rate=1;
	//rate=(location.href.indexOf("www.paipai.com")>=0)?0.3:rate;
	if(!window.speedTimePoint)return;
	if(speedTimePoint.length<2)return;
	var s=[],sp=speedTimePoint;
	for(var i=1;i<sp.length;i++){
		if(!!sp[i])	s.push(i+"="+(sp[i]-sp[0][0]));
	}
	var url="http://isdspeed.qq.com/cgi-bin/r.cgi?flag1="+sp[0][1]+"&flag2="+sp[0][2]+"&flag3="+sp[0][3]+"&"+s.join("&");//上报cgi的地址
	if(Math.random()<rate){
		var em = document.createElement('script');
		em.src = url;
		document.getElementsByTagName('head')[0].appendChild(em);
	}
});
</script>
<script>window["PP.mobile.ping.time"]=[new Date()]</script>
<script id="legos:21922" ver="21922:20140103:20140106154115" name="PP.mobile.ping" src="wx_assets/js/pp.mobile.ping.20140103.js?t=20140106154115" charset="gbk"></script><!--[if !IE]>|xGv00|f624933d1927edeeef9a9f3578b9e45b<![endif]--><!--[if !IE]>|xGv00|9b675330e484b42090906daafdaf54fd<![endif]--><!--[if !IE]>|xGv00|7b4683f818414321aa44395ebd48efa7<![endif]-->
       
<script type="text/javascript">
function resetAndAppendHerf(search){
　　	var args = search.substring(1); 
　　	var retval = new Array(); 
	args = args.split("&"); 
	for(var i = 0; i < args.length; i ++){ 
		str = args[i]; 
		var arg = str.split("="); 
		if(arg.length <= 1) continue; 
		if(arg[0] == 'userName'){
			args[i] = "userName=";
		}
	} 
	return args.join("&");
}

$(function(){
	var imageUrl = '{$productList[0].picUrl}';
	var title = '{$productList[0].name}';
	var des = '点击这里查看商品';
	var search = '?' + resetAndAppendHerf(window.location.search);
	var shareUrlString = window.location.protocol + "//"
			+ window.location.host + window.location.pathname + search;	      
	
	window.shareData = {
		"imgUrl": imageUrl,
		"timeLineLink":  shareUrlString ,
		"sendFriendLink":  shareUrlString ,
		"weiboLink":  shareUrlString ,
		"tTitle": title,
		"tContent": des,
		"fTitle": title,
		"fContent": des,
		"wContent": des
	};
	document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
		// 发送给好友
		WeixinJSBridge.on('menu:share:appmessage', function (argv) {
			WeixinJSBridge.invoke('sendAppMessage', {
				"img_url":  window.shareData.imgUrl,
				"img_width": "640",
				"img_height": "640",
				"link": window.shareData.sendFriendLink,
				"desc": window.shareData.fContent,
				"title": window.shareData.fTitle
			}, function (res) {
				_report('send_msg', res.err_msg);
			})
		});
	
		// 分享到朋友圈
		WeixinJSBridge.on('menu:share:timeline', function (argv) {
			WeixinJSBridge.invoke('shareTimeline', {
				"img_url": window.shareData.imgUrl,
				"img_width": "640",
				"img_height": "640",
				"link": window.shareData.timeLineLink,
				"desc": window.shareData.tContent,
				"title": window.shareData.tTitle
			}, function (res) {
				_report('timeline', res.err_msg);
			});
		});
	
		// 分享到微博
		WeixinJSBridge.on('menu:share:weibo', function (argv) {
			WeixinJSBridge.invoke('shareWeibo', {
				"content": window.shareData.wContent,
				"url": window.shareData.weiboLink
			}, function (res) {
				_report('weibo', res.err_msg);
			});
		});
	});
});
</script>


</body>
</html>
<!--[if !IE]>|xGv00|294c23460719606eeb1e5bbe896586a2<![endif]-->